package com.sgcc.operate.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sgcc.operate.mapper.OCrowdDetailMapper;
import com.sgcc.operate.domain.OCrowdDetail;
import com.sgcc.operate.service.IOCrowdDetailService;

/**
 * 人群明细Service业务层处理
 * 
 * @author sgcc
 * @date 2021-04-02
 */
@Service
public class OCrowdDetailServiceImpl implements IOCrowdDetailService 
{
    @Autowired
    private OCrowdDetailMapper oCrowdDetailMapper;

    /**
     * 查询人群明细
     * 
     * @param id 人群明细ID
     * @return 人群明细
     */
    @Override
    public OCrowdDetail selectOCrowdDetailById(String id)
    {
        return oCrowdDetailMapper.selectOCrowdDetailById(id);
    }

    /**
     * 查询人群明细列表
     * 
     * @param oCrowdDetail 人群明细
     * @return 人群明细
     */
    @Override
    public List<OCrowdDetail> selectOCrowdDetailList(OCrowdDetail oCrowdDetail)
    {
        return oCrowdDetailMapper.selectOCrowdDetailList(oCrowdDetail);
    }

    /**
     * 新增人群明细
     * 
     * @param oCrowdDetail 人群明细
     * @return 结果
     */
    @Override
    public int insertOCrowdDetail(OCrowdDetail oCrowdDetail)
    {
        return oCrowdDetailMapper.insertOCrowdDetail(oCrowdDetail);
    }

    /**
     * 修改人群明细
     * 
     * @param oCrowdDetail 人群明细
     * @return 结果
     */
    @Override
    public int updateOCrowdDetail(OCrowdDetail oCrowdDetail)
    {
        return oCrowdDetailMapper.updateOCrowdDetail(oCrowdDetail);
    }

    /**
     * 批量删除人群明细
     * 
     * @param ids 需要删除的人群明细ID
     * @return 结果
     */
    @Override
    public int deleteOCrowdDetailByIds(String[] ids)
    {
        return oCrowdDetailMapper.deleteOCrowdDetailByIds(ids);
    }

    /**
     * 删除人群明细信息
     * 
     * @param id 人群明细ID
     * @return 结果
     */
    @Override
    public int deleteOCrowdDetailById(String id)
    {
        return oCrowdDetailMapper.deleteOCrowdDetailById(id);
    }
}
